package com.cheeven.cwliu.citation.steps;

import java.util.HashMap;
import org.w3c.dom.Document;

public class Step6 extends StepBase {

	public static void openCitationReport(HashMap<String, String> control) {
		logInfo("6. Open Citation Report page");
		logInfo(1, "Citation Report Page is {0}", control.get("citationReportUrlString"));

		String citationReportUrlString = control.get("citationReportUrlString");

		String citationReportPage = httpGet(citationReportUrlString);

		Document domdoc = toDOM(citationReportPage);
		control.put("qid", xpath("//input[@name='qid']/@value", domdoc));
		
		logInfo(1, "qid={0}", control.get("qid"));
		
	}
}
